
/* First created by JCasGen Wed Feb 05 15:28:58 CET 2014 */
package de.unidue.langtech.teaching.pp.type;

import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.cas.impl.CASImpl;
import org.apache.uima.cas.impl.FSGenerator;
import org.apache.uima.cas.FeatureStructure;
import org.apache.uima.cas.impl.TypeImpl;
import org.apache.uima.cas.Type;
import org.apache.uima.cas.impl.FeatureImpl;
import org.apache.uima.cas.Feature;
import org.apache.uima.jcas.tcas.Annotation_Type;

/** 
 * Updated by JCasGen Wed Feb 12 20:25:42 CET 2014
 * @generated */
public class BaseTime_Type extends Annotation_Type {
  /** @generated */
  @Override
  protected FSGenerator getFSGenerator() {return fsGenerator;}
  /** @generated */
  private final FSGenerator fsGenerator = 
    new FSGenerator() {
      public FeatureStructure createFS(int addr, CASImpl cas) {
  			 if (BaseTime_Type.this.useExistingInstance) {
  			   // Return eq fs instance if already created
  		     FeatureStructure fs = BaseTime_Type.this.jcas.getJfsFromCaddr(addr);
  		     if (null == fs) {
  		       fs = new BaseTime(addr, BaseTime_Type.this);
  			   BaseTime_Type.this.jcas.putJfsFromCaddr(addr, fs);
  			   return fs;
  		     }
  		     return fs;
        } else return new BaseTime(addr, BaseTime_Type.this);
  	  }
    };
  /** @generated */
  @SuppressWarnings ("hiding")
  public final static int typeIndexID = BaseTime.typeIndexID;
  /** @generated 
     @modifiable */
  @SuppressWarnings ("hiding")
  public final static boolean featOkTst = JCasRegistry.getFeatOkTst("de.unidue.langtech.teaching.pp.type.BaseTime");
 
  /** @generated */
  final Feature casFeat_value;
  /** @generated */
  final int     casFeatCode_value;
  /** @generated */ 
  public String getValue(int addr) {
        if (featOkTst && casFeat_value == null)
      jcas.throwFeatMissing("value", "de.unidue.langtech.teaching.pp.type.BaseTime");
    return ll_cas.ll_getStringValue(addr, casFeatCode_value);
  }
  /** @generated */    
  public void setValue(int addr, String v) {
        if (featOkTst && casFeat_value == null)
      jcas.throwFeatMissing("value", "de.unidue.langtech.teaching.pp.type.BaseTime");
    ll_cas.ll_setStringValue(addr, casFeatCode_value, v);}
    
  
 
  /** @generated */
  final Feature casFeat_timexId;
  /** @generated */
  final int     casFeatCode_timexId;
  /** @generated */ 
  public String getTimexId(int addr) {
        if (featOkTst && casFeat_timexId == null)
      jcas.throwFeatMissing("timexId", "de.unidue.langtech.teaching.pp.type.BaseTime");
    return ll_cas.ll_getStringValue(addr, casFeatCode_timexId);
  }
  /** @generated */    
  public void setTimexId(int addr, String v) {
        if (featOkTst && casFeat_timexId == null)
      jcas.throwFeatMissing("timexId", "de.unidue.langtech.teaching.pp.type.BaseTime");
    ll_cas.ll_setStringValue(addr, casFeatCode_timexId, v);}
    
  
 
  /** @generated */
  final Feature casFeat_fileName;
  /** @generated */
  final int     casFeatCode_fileName;
  /** @generated */ 
  public String getFileName(int addr) {
        if (featOkTst && casFeat_fileName == null)
      jcas.throwFeatMissing("fileName", "de.unidue.langtech.teaching.pp.type.BaseTime");
    return ll_cas.ll_getStringValue(addr, casFeatCode_fileName);
  }
  /** @generated */    
  public void setFileName(int addr, String v) {
        if (featOkTst && casFeat_fileName == null)
      jcas.throwFeatMissing("fileName", "de.unidue.langtech.teaching.pp.type.BaseTime");
    ll_cas.ll_setStringValue(addr, casFeatCode_fileName, v);}
    
  
 
  /** @generated */
  final Feature casFeat_basetimeYear;
  /** @generated */
  final int     casFeatCode_basetimeYear;
  /** @generated */ 
  public int getBasetimeYear(int addr) {
        if (featOkTst && casFeat_basetimeYear == null)
      jcas.throwFeatMissing("basetimeYear", "de.unidue.langtech.teaching.pp.type.BaseTime");
    return ll_cas.ll_getIntValue(addr, casFeatCode_basetimeYear);
  }
  /** @generated */    
  public void setBasetimeYear(int addr, int v) {
        if (featOkTst && casFeat_basetimeYear == null)
      jcas.throwFeatMissing("basetimeYear", "de.unidue.langtech.teaching.pp.type.BaseTime");
    ll_cas.ll_setIntValue(addr, casFeatCode_basetimeYear, v);}
    
  
 
  /** @generated */
  final Feature casFeat_basetimeDay;
  /** @generated */
  final int     casFeatCode_basetimeDay;
  /** @generated */ 
  public int getBasetimeDay(int addr) {
        if (featOkTst && casFeat_basetimeDay == null)
      jcas.throwFeatMissing("basetimeDay", "de.unidue.langtech.teaching.pp.type.BaseTime");
    return ll_cas.ll_getIntValue(addr, casFeatCode_basetimeDay);
  }
  /** @generated */    
  public void setBasetimeDay(int addr, int v) {
        if (featOkTst && casFeat_basetimeDay == null)
      jcas.throwFeatMissing("basetimeDay", "de.unidue.langtech.teaching.pp.type.BaseTime");
    ll_cas.ll_setIntValue(addr, casFeatCode_basetimeDay, v);}
    
  
 
  /** @generated */
  final Feature casFeat_basetimeMonth;
  /** @generated */
  final int     casFeatCode_basetimeMonth;
  /** @generated */ 
  public int getBasetimeMonth(int addr) {
        if (featOkTst && casFeat_basetimeMonth == null)
      jcas.throwFeatMissing("basetimeMonth", "de.unidue.langtech.teaching.pp.type.BaseTime");
    return ll_cas.ll_getIntValue(addr, casFeatCode_basetimeMonth);
  }
  /** @generated */    
  public void setBasetimeMonth(int addr, int v) {
        if (featOkTst && casFeat_basetimeMonth == null)
      jcas.throwFeatMissing("basetimeMonth", "de.unidue.langtech.teaching.pp.type.BaseTime");
    ll_cas.ll_setIntValue(addr, casFeatCode_basetimeMonth, v);}
    
  



  /** initialize variables to correspond with Cas Type and Features
	* @generated */
  public BaseTime_Type(JCas jcas, Type casType) {
    super(jcas, casType);
    casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());

 
    casFeat_value = jcas.getRequiredFeatureDE(casType, "value", "uima.cas.String", featOkTst);
    casFeatCode_value  = (null == casFeat_value) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_value).getCode();

 
    casFeat_timexId = jcas.getRequiredFeatureDE(casType, "timexId", "uima.cas.String", featOkTst);
    casFeatCode_timexId  = (null == casFeat_timexId) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_timexId).getCode();

 
    casFeat_fileName = jcas.getRequiredFeatureDE(casType, "fileName", "uima.cas.String", featOkTst);
    casFeatCode_fileName  = (null == casFeat_fileName) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_fileName).getCode();

 
    casFeat_basetimeYear = jcas.getRequiredFeatureDE(casType, "basetimeYear", "uima.cas.Integer", featOkTst);
    casFeatCode_basetimeYear  = (null == casFeat_basetimeYear) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_basetimeYear).getCode();

 
    casFeat_basetimeDay = jcas.getRequiredFeatureDE(casType, "basetimeDay", "uima.cas.Integer", featOkTst);
    casFeatCode_basetimeDay  = (null == casFeat_basetimeDay) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_basetimeDay).getCode();

 
    casFeat_basetimeMonth = jcas.getRequiredFeatureDE(casType, "basetimeMonth", "uima.cas.Integer", featOkTst);
    casFeatCode_basetimeMonth  = (null == casFeat_basetimeMonth) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_basetimeMonth).getCode();

  }
}



    